﻿@model BussinessLogic.Exercise.SelectPicture
@{
    ViewBag.Title = "ExerciseMaintain";
}
<h2>
    ExerciseMaintain</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ExerciseCreate</legend>
        <h2>Neutral Photos</h2>
        @foreach (var neutral in Model.NeutralPhotos)
        {
            <input type="checkbox" name="neutrals" id="@neutral" value="@neutral" />
            <label for="@neutral">
                <img src= "@Url.Content("~/uploads/neutral/" + neutral)" alt="@neutral" />
            </label>  
        }

        <br />
        <br />

        <h2>Negative Photos</h2>
        @foreach (var negative in Model.NegativePhotos)
        {
            <input type="checkbox" name="negatives" id="@negative" value="@negative" />
            <label for="@negative">
                <img src= "@Url.Content("~/uploads/negative/" + negative)" alt="@negative" />
            </label>  
        }
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
